<?header("Pragma: public");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: pre-check=0, post-check=0, max-age=0");
header("Pragma: no-cache");
header("Expires: 0");
header("Content-Transfer-Encoding: none");
header("Content-Type: application/vnd.ms-excel;");
header("Content-type: application/x-msexcel");
header("Content-Disposition: attachment; filename=Rel_Atendimento_".date('d-m-Y').".xls")
?>
<style>

    .image{
        float: left;
    }

    .nomeRel{
        width: 50%;
        margin-left: 150px;
        font-size: 30px;
        padding-top: 40px;
        height: 50px
    }

    #table-bordered{
        
        width: 100%
        
    }

    th{
        background-color: #49716A;
        color: white;
    }

    td{
        text-align: center;

    }

</style>
<body>

    
            <!--<div style="width: 100%">
                <img alt="foto" class="image" width="100" height="100" src="/theme/default/imgs/logo.jpg"/>
                <div class="nomeRel"><u>Relatorio de Atendimento</u></div>
            </div>-->
            <table id="table-bordered" border="1" align="center">

                    <thead>
                    <th style="background-color: #49716A; color: white;"><?= utf8_decode("Descrição"); ?></th>
                        <th style="background-color: #49716A; color: white;">Data do Vencimento</th>
                        <th style="background-color: #49716A; color: white;">Data do Pagamento</th>
						<th style="background-color: #49716A; color: white;">Valor</th>
                    </thead>
                    <? foreach ($this->result as $table) { ?>
                    <tr>
                        <td><?= $table["descricao"]; ?></td>
                        <td><?= $table["dt_vencimento"]; ?></td>
                        <td><?= $table["dt_pagamento"]; ?></td>
						<td><?= $table["valor"]; ?></td>
                    </tr>
                        <? } ?>


            </table>
</body>
